import request from '@/utils/request'

//登录请求
export function loginApi(data) {
	return request({
		url:'/sys/login',
		method:"post",
		data:data
	})
}

// 获取用户资料请求
export function getUserInfoApi() {
  return request({
    url: '/sys/profile',
    method: 'post'
  })
}

// 获取详细用户资料请求
export function getDetailUserInfoApi(id) {
  return request({
    url: `/sys/user/${id}`,
    method: 'get'
  })
}

// 退出请求
export function logoutApi() {
 
}
